package io.renren.modules.police.service;

import io.renren.common.page.PageData;
import io.renren.common.service.CrudService;
import io.renren.modules.police.dto.PoliceServiceAppointmentDTO;
import io.renren.modules.police.entity.PoliceServiceAppointmentEntity;

import java.util.List;
import java.util.Map;

/**
 * 服务预约表
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2023-09-02
 */
public interface PoliceServiceAppointmentService extends CrudService<PoliceServiceAppointmentEntity, PoliceServiceAppointmentDTO> {

    PageData<PoliceServiceAppointmentDTO> getPage(Map<String, Object> params);

    void saveAppointment(PoliceServiceAppointmentDTO dto);

    /**
     * 根据预约状态查看相关人员的预约服务
     * @param status
     * @return
     */
    List<PoliceServiceAppointmentDTO> getServiceAppointmentByStatus(Integer status);
}